Example: Replace placeholders with tag names
The following example shows how to replace placeholders with tag names.
To run a display called Canning that has three tag placeholders, for the tags Pea_Weight, Pea_Level, and Pea_Temp
- On the Canning graphic display, create three numeric display objects.
- On the Connections tab for the first object, assign the placeholder #1 to the Value control.
- Assign the placeholders #2 and #3 to the Value controls for the second and third objects, respectively.
- Create a parameter file called Peas:
#1=Pea_Weight
#2=Pea_Level
#3=Pea_Temp
- On another graphic display, for example, the main display or an overview display, create a Goto Display button.
- Assign the Canning graphic display and the Peas parameter file to the button.
- Run the application and press the Goto button to open the Canning display.
The numeric display with #1 will show the tag value for Pea_Weight, the numeric display with #2 will show the tag value for Pea_Level, and the numeric display with #3 will show the tag value for Pea_Temp.
See also
Create a parameter file
Replace a tag name or character string
Tag placeholders
Example: Replace placeholders with any part of a tag name